// 1.首先要导入
import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
// 2.注册模块
Vue.use(Vuex)

// 3.定义方法
// 3. 创建实例对象
const store = new Vuex.Store({
  // state,
  // actions,
  // mutations,
  // getters,
  modules: {
    home,
    search,
    detail,
  },
})
// 4. 导出对象
export default store
